﻿@model Kaqaz.Entities.Comment
<div class="createcomment" id="createComment">
    @using (Ajax.BeginForm("Create", "Comment", new AjaxOptions { UpdateTargetId = "createComment" }))
    {
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.PostId)
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Website)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Website)
            @Html.ValidationMessageFor(model => model.Website)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Content)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Content, new { rows = 7, cols = 50 })
            @Html.ValidationMessageFor(model => model.Content)
        </div>
        <p>
            <input type="submit" value="@Resource.Send" />
        </p>
    }
</div>
